#include<cstdio>
using namespace std;

void _hash(unsigned int& Hash,unsigned int x){
    Hash+=x;
}

int main(){
    freopen("input","r",stdin);
    freopen("output","w",stdout);
    int n,x;unsigned int Hash=0;
    scanf("%d",&n);
    for(int i=1;i<=n;i++){
        scanf("%d",&x);
        _hash(Hash,x);
    }
    printf("%u\n",Hash);
    return 0;
}